package com.ruoyi.project.loan.mapper;

import com.ruoyi.project.loan.domain.RepaymentRecord;

import java.util.List;

/**
 * 还款记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public interface RepaymentRecordMapper {
    /**
     * 查询还款记录
     *
     * @param recordId 还款记录主键
     * @return 还款记录
     */
    public RepaymentRecord selectRepaymentRecordByRecordId(Long recordId);

    /**
     * 查询还款记录列表
     *
     * @param repaymentRecord 还款记录
     * @return 还款记录集合
     */
    public List<RepaymentRecord> selectRepaymentRecordList(RepaymentRecord repaymentRecord);

    /**
     * 新增还款记录
     *
     * @param repaymentRecord 还款记录
     * @return 结果
     */
    public int insertRepaymentRecord(RepaymentRecord repaymentRecord);

    /**
     * 修改还款记录
     *
     * @param repaymentRecord 还款记录
     * @return 结果
     */
    public int updateRepaymentRecord(RepaymentRecord repaymentRecord);

    /**
     * 删除还款记录
     *
     * @param recordId 还款记录主键
     * @return 结果
     */
    public int deleteRepaymentRecordByRecordId(Long recordId);

    /**
     * 批量删除还款记录
     *
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRepaymentRecordByRecordIds(Long[] recordIds);
}
